package com.yxzc.chapter05.fundetails

/**
 *
 * @author wu
 * @create 2021-09-03-16:03 
 */
object DetailsDemoParam {
  def main(args: Array[String]): Unit = {
    try {

      f11
    } catch {
      case ex: NumberFormatException => {
        println("捕获到了")
      }

    }

  }

  @throws(classOf[Exception])
  def f11() = {
    "abe".toInt
  }


  def mas(ad: String) = {
    println(1)
  }

  def gerRes(add: String = "jack1", nike: String, addies: String = "jack3", mac: String = "jack4"): Unit = {
    println(add)
    println(nike)
    println(addies)
    println(mac)
  }

  def sum(n2: Int*) = {

  }


}
